﻿<!--
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
-->

<Application
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  
  xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
  xmlns:samplesCommon="clr-namespace:System.Windows.Controls.Samples;assembly=System.Windows.Controls.Samples.Common"
  xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
  x:Class="System.Windows.Controls.Samples.App">
    <Application.Resources>

        <!--Collection of SampleTreeItems used to populate the Sample Browser TreeView-->
        <toolkit:ObjectCollection x:Key="SampleTreeView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <samplesCommon:SampleTreeItem TreeItemName="Controls">
                <samplesCommon:SampleTreeItem TreeItemName="Calendar" IconResourceName="Calendar.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="DatePicker" IconResourceName="DatePicker.png" />
                <samplesCommon:SampleTreeItem TreeItemName="DockPanel" IconResourceName="DockPanel.png" />
                <samplesCommon:SampleTreeItem TreeItemName="Expander" IconResourceName="Expander.png" />
                <samplesCommon:SampleTreeItem TreeItemName="GridSplitter" IconResourceName="GridSplitter.png" />
                <samplesCommon:SampleTreeItem TreeItemName="TabControl" IconResourceName="TabControl.png" />
                <samplesCommon:SampleTreeItem TreeItemName="TreeView" IconResourceName="TreeView.png" />
                <samplesCommon:SampleTreeItem TreeItemName="Viewbox" IconResourceName="ViewBox.png" />
                <samplesCommon:SampleTreeItem TreeItemName="WrapPanel" IconResourceName="WrapPanel.png" />
            </samplesCommon:SampleTreeItem>
            <samplesCommon:SampleTreeItem TreeItemName="DataVisualization">
                <samplesCommon:SampleTreeItem TreeItemName="Area Series" IconResourceName="AreaSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Bar Series" IconResourceName="BarSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Bubble Series" IconResourceName="BubbleSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Column Series" IconResourceName="ColumnSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Line Series" IconResourceName="LineSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Pie Series" IconResourceName="PieSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Scatter Series" IconResourceName="ScatterSeries.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="TreeMap" IconResourceName="TreeMap.png" />
            </samplesCommon:SampleTreeItem>
            <samplesCommon:SampleTreeItem TreeItemName="Input">
                <samplesCommon:SampleTreeItem TreeItemName="AutoCompleteBox" IconResourceName="AutoCompleteBox.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="ButtonSpinner" IconResourceName="ButtonSpinner.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="DomainUpDown" IconResourceName="DomainUpDown.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="NumericUpDown" IconResourceName="NumericUpDown.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="TimePicker" IconResourceName="TimePicker.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="UpDownBase" IconResourceName="UpDownBase.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Rating" IconResourceName="Rating.png"/>
            </samplesCommon:SampleTreeItem>
            <samplesCommon:SampleTreeItem TreeItemName="Layout">
                <samplesCommon:SampleTreeItem TreeItemName="Accordion" IconResourceName="Accordion.png" />
                <samplesCommon:SampleTreeItem TreeItemName="TransitioningContentControl" IconResourceName="TransitioningContentControl.png"/>
            </samplesCommon:SampleTreeItem>
            <samplesCommon:SampleTreeItem TreeItemName="Theming">
                <samplesCommon:SampleTreeItem TreeItemName="ImplicitStyleManager" IconResourceName="ImplicitStyleManager.png"/>
                <samplesCommon:SampleTreeItem TreeItemName="Theme Browser" IconResourceName="ThemeBrowser.png"/>
            </samplesCommon:SampleTreeItem>
        </toolkit:ObjectCollection>



        <!-- DataTemplate for Photograph instances -->
        <DataTemplate x:Key="PhotographTemplate">
            <Grid Margin="6">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <toolkit:Viewbox Height="100" Width="100" VerticalAlignment="Bottom">
                    <Border BorderBrush="#FF999999" BorderThickness="2" Padding="10">
                        <ContentControl Content="{Binding Image}" />
                    </Border>
                </toolkit:Viewbox>
                <ContentControl Grid.Row="1" Content="{Binding Name}" HorizontalAlignment="Center" FontSize="10" />
            </Grid>
        </DataTemplate>
        
        <!-- A smoothed out ListBoxItem style -->
        <Style x:Key="SmoothListBoxItem" TargetType="ListBoxItem">
            <Setter Property="IsEnabled" Value="true" />
            <Setter Property="Foreground" Value="#FF000000" />
            <Setter Property="HorizontalContentAlignment" Value="Left" />
            <Setter Property="VerticalContentAlignment" Value="Top" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="FontSize" Value="12" />
            <Setter Property="Background" Value="White" />
            <Setter Property="Padding" Value="2,0,0,0" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <Grid Background="{TemplateBinding Background}">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="HoverOverlay" Storyboard.TargetProperty="Opacity" To=".75" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="fillStop0Hover" Storyboard.TargetProperty="Color" To="#FFF9FAFA" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="fillStop1Hover" Storyboard.TargetProperty="Color" To="#FFD6DFE7" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="fillStop2Hover" Storyboard.TargetProperty="Color" To="#FFD3E4F5" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="strokeStop0Hover" Storyboard.TargetProperty="Color" To="#00000000" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="strokeStop1Hover" Storyboard.TargetProperty="Color" To="#00000000" Duration="0" />
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="SelectionStates">
                                    <vsm:VisualState x:Name="Unselected" />
                                    <vsm:VisualState x:Name="Selected">
                                        <Storyboard>
                                            <ColorAnimation Storyboard.TargetName="fillStop0" Storyboard.TargetProperty="Color" To="#FFD9EFFF" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="fillStop1" Storyboard.TargetProperty="Color" To="#FFBDD2E6" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="fillStop2" Storyboard.TargetProperty="Color" To="#FFA1B6CD" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="strokeStop0" Storyboard.TargetProperty="Color" To="#FF77B9EB" Duration="0" />
                                            <ColorAnimation Storyboard.TargetName="strokeStop1" Storyboard.TargetProperty="Color" To="#FF4887CD" Duration="0" />
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>

                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>

                            <Rectangle IsHitTestVisible="False">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0.316111,0.0165521" EndPoint="0.316111,0.724833">
                                        <GradientStop x:Name="fillStop0" Color="#00000000" Offset="0"/>
                                        <GradientStop x:Name="fillStop1" Color="#00000000" Offset="0.682203"/>
                                        <GradientStop x:Name="fillStop2" Color="#00000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                                <Rectangle.Stroke>
                                    <LinearGradientBrush StartPoint="0.318122,0.0360108" EndPoint="0.318122,0.715784">
                                        <GradientStop x:Name="strokeStop0" Color="#00000000" Offset="0"/>
                                        <GradientStop x:Name="strokeStop1" Color="#00000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Stroke>
                            </Rectangle>
                            <Rectangle x:Name="HoverOverlay" IsHitTestVisible="False" Opacity="0">
                                <Rectangle.Fill>
                                    <LinearGradientBrush StartPoint="0.316111,0.0165521" EndPoint="0.316111,0.724833">
                                        <GradientStop x:Name="fillStop0Hover" Color="#00000000" Offset="0"/>
                                        <GradientStop x:Name="fillStop1Hover" Color="#00000000" Offset="0.682203"/>
                                        <GradientStop x:Name="fillStop2Hover" Color="#00000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                                <Rectangle.Stroke>
                                    <LinearGradientBrush StartPoint="0.318122,0.0360108" EndPoint="0.318122,0.715784">
                                        <GradientStop x:Name="strokeStop0Hover" Color="#00000000" Offset="0"/>
                                        <GradientStop x:Name="strokeStop1Hover" Color="#00000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Stroke>
                            </Rectangle>

                            <Border x:Name="FocusVisual" BorderBrush="#FF0B8BAA" BorderThickness="1" CornerRadius="4" Visibility="Collapsed" IsHitTestVisible="False" />
                            <ContentPresenter
                              Content="{TemplateBinding Content}"
                              ContentTemplate="{TemplateBinding ContentTemplate}"
                              HorizontalAlignment="Left" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- ListBox template that uses a WrapPanel -->
        <Style x:Key="WrapListBox" TargetType="ListBox">
            <Setter Property="ItemContainerStyle" Value="{StaticResource SmoothListBoxItem}" />
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <toolkit:WrapPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBox">
                        <Grid>
                            <Border BorderBrush="#FF000000" BorderThickness="1" CornerRadius="3">
                                <Border Background="{TemplateBinding Background}" BorderBrush="#FFFFFFFF" BorderThickness="2" CornerRadius="3">
                                    <ItemsPresenter />
                                </Border>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Image brush resources-->
        <ImageBrush x:Key="SearchSuggestionsImageBrush" ImageSource="AutoCompleteBox/Venice.jpg" Stretch="None" />

        <!-- Data Visualization -->

        <!--Common Gradients used for different samples-->
        <!--Gray-->
        <Color x:Key="GrayShadeStartColor">#FFF4F4F4</Color>
        <Color x:Key="GrayShadeEndColor">#FFB7B7B7</Color>
        <RadialGradientBrush x:Key="GrayRadialBrush">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819"/>
                    <SkewTransform CenterX="0.5" CenterY="0.5"/>
                    <RotateTransform CenterX="0.5" CenterY="0.5"/>
                    <TranslateTransform X="-0.425" Y="-0.486"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="{StaticResource GrayShadeStartColor}"/>
            <GradientStop Color="{StaticResource GrayShadeEndColor}" Offset="1"/>
        </RadialGradientBrush>
        <!--Blue-->
        <LinearGradientBrush x:Key="DefaultEnhancedChartDarkBlue" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFB9D6F7" Offset="0" />
            <GradientStop Color="#FF5A88CE" Offset="0.185" />
            <GradientStop Color="#FF477DAB" Offset="0.475" />
            <GradientStop Color="#FF284B70" Offset="1" />
        </LinearGradientBrush>
        <!--Red-->
        <LinearGradientBrush x:Key="DefaultEnhancedChartDarkRed" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFBB7B5" Offset="0" />
            <GradientStop Color="#FFCE5A5A" Offset="0.185" />
            <GradientStop Color="#FFAB4747" Offset="0.475" />
            <GradientStop Color="#FF702828" Offset="1" />
        </LinearGradientBrush>
        <!--Yellow-->
        <Color x:Key="ShinyTopGradientYellow">#FFFFFF72</Color>
        <Color x:Key="ShinyBottomGradientYellow">#FF8F8832</Color>
        <RadialGradientBrush x:Key="ShinyYellowBrush">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="2.09" ScaleY="1.819"/>
                    <TranslateTransform X="-0.425" Y="-0.486"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="{StaticResource ShinyTopGradientYellow}"/>
            <GradientStop Color="{StaticResource ShinyBottomGradientYellow}" Offset="1"/>
        </RadialGradientBrush>

        <!-- Style for the Grid wrapper around each sample item -->
        <Style x:Key="WrapperStyle" TargetType="Grid">
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Margin" Value="1,4,4,1"/>
            <Setter Property="MinWidth" Value="380"/>
            <Setter Property="MinHeight" Value="270"/>
        </Style>

        <!-- Style for the Grid wrapper around each sample item (with no MinWidth/MinHeight) -->
        <Style x:Key="WrapperStyleNoMinimum" TargetType="Grid">
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Margin" Value="1,4,4,1"/>
        </Style>

        <!-- Simple sample data set for charting -->
        <samplesCommon:City x:Key="City"/>
        <samplesCommon:ParticulateLevel x:Key="ParticulateLevel"/>
        <samplesCommon:WidgetPopularityPollCollection x:Key="WidgetPopularity"/>
        <samplesCommon:GizmoPopularityPollCollection x:Key="GizmoPopularity"/>
        
        <!-- Label used by samples -->
        <Style x:Key="Description" TargetType="TextBlock">
            <Setter Property="FontSize" Value="10" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextWrapping" Value="Wrap" />
        </Style>

        <!-- Informational paragraph text -->
        <Style x:Key="Information" TargetType="TextBlock">
            <Setter Property="FontSize" Value="12" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Padding" Value="5" />
            <Setter Property="UseLayoutRounding" Value="False" />
        </Style>

        <!-- API Names -->
        <Style x:Key="ApiName" TargetType="TextBlock">
            <Setter Property="Margin" Value="5 0 0 0" />
            <Setter Property="FontSize" Value="10" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="#FF555555" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="UseLayoutRounding" Value="False" />
        </Style>

        <!-- API Descriptions -->
        <Style x:Key="ApiDescription" TargetType="TextBlock">
            <Setter Property="Margin" Value="5 0 0 5" />
            <Setter Property="FontSize" Value="11" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="UseLayoutRounding" Value="False" />
        </Style>

        <!-- Departments of the United Kingdom Government -->
        <toolkit:ObjectCollection x:Key="DepartmentOrganization" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <samplesCommon:Department Title="Government">
                <!-- Sovereign -->
                <samplesCommon:Department Title="Sovereign">
                    <samplesCommon:Department.Employees>
                        <samplesCommon:Employee FirstName="Queen" LastName="Elizabeth II" />
                    </samplesCommon:Department.Employees>
                </samplesCommon:Department>

                <!-- Cabinet -->
                <samplesCommon:Department Title="Cabinet">

                    <samplesCommon:Department Title="Prime Minister">
                        <samplesCommon:Department.Employees>
                            <samplesCommon:Employee FirstName="Gordon" LastName="Brown" />
                        </samplesCommon:Department.Employees>
                    </samplesCommon:Department>

                    <samplesCommon:Department Title="Chancellor">
                        <samplesCommon:Department.Employees>
                            <samplesCommon:Employee FirstName="Alistair" LastName="Darling" />
                        </samplesCommon:Department.Employees>
                    </samplesCommon:Department>

                    <samplesCommon:Department Title="Foreign Secretary">
                        <samplesCommon:Department.Employees>
                            <samplesCommon:Employee FirstName="David" LastName="Miliband" />
                        </samplesCommon:Department.Employees>
                    </samplesCommon:Department>

                    <samplesCommon:Department Title="Home Secretary">
                        <samplesCommon:Department.Employees>
                            <samplesCommon:Employee FirstName="Jacqui" LastName="Smith" />
                        </samplesCommon:Department.Employees>
                    </samplesCommon:Department>

                    <samplesCommon:Department Title="Justice Secretary">
                        <samplesCommon:Department.Employees>
                            <samplesCommon:Employee FirstName="Jack" LastName="Straw" />
                        </samplesCommon:Department.Employees>
                    </samplesCommon:Department>

                </samplesCommon:Department>
            </samplesCommon:Department>
        </toolkit:ObjectCollection>

        <!-- Tree of Life used for hierarchical data binding examples -->
        <toolkit:ObjectCollection x:Key="TreeOfLife" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <samplesCommon:Domain Classification="Bacteria">
                <samplesCommon:Kingdom Classification="Eubacteria" />
            </samplesCommon:Domain>
            <samplesCommon:Domain Classification="Archaea">
                <samplesCommon:Kingdom Classification="Archaebacteria" />
            </samplesCommon:Domain>
            <samplesCommon:Domain Classification="Eukarya">
                <samplesCommon:Kingdom Classification="Protista" />
                <samplesCommon:Kingdom Classification="Fungi" />
                <samplesCommon:Kingdom Classification="Plantae" />
                <samplesCommon:Kingdom Classification="Animalia">
                    <samplesCommon:Phylum Classification="Arthropoda">
                        <samplesCommon:Class Classification="Insecta">
                            <samplesCommon:Order Classification="Diptera">
                                <samplesCommon:Family Classification="Drosophilidae">
                                    <samplesCommon:Genus Classification="Drosophila">
                                        <samplesCommon:Species Classification="D. melanogaster" />
                                    </samplesCommon:Genus>
                                </samplesCommon:Family>
                            </samplesCommon:Order>
                        </samplesCommon:Class>
                    </samplesCommon:Phylum>
                    <samplesCommon:Phylum Classification="Chordata">
                        <samplesCommon:Class Classification="Mammalia">
                            <samplesCommon:Order Classification="Primates">
                                <samplesCommon:Family Classification="Hominidae">
                                    <samplesCommon:Genus Classification="Homo">
                                        <samplesCommon:Species Classification="H. sapiens" />
                                    </samplesCommon:Genus>
                                </samplesCommon:Family>
                            </samplesCommon:Order>
                        </samplesCommon:Class>
                    </samplesCommon:Phylum>
                    <samplesCommon:Phylum Classification="Ctenophora" />
                    <samplesCommon:Phylum Classification="Porifera" />
                    <samplesCommon:Phylum Classification="Placozoa" />
                </samplesCommon:Kingdom>
            </samplesCommon:Domain>
        </toolkit:ObjectCollection>

        <!-- Catalog of music used for sample -->
        <toolkit:ObjectCollection x:Key="MusicCatalog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <samplesCommon:Artist ArtistName="Frank Sinatra" Genre="Pop">
                <samplesCommon:Album Title="In The Wee Small Hours" ReleaseYear="1954">
                    <samplesCommon:Song Title="In The Wee Small Hours Of The Morning" Length="3:00" />
                    <samplesCommon:Song Title="Mood Indigo" Length="3:30" />
                    <samplesCommon:Song Title="Glad To Be Unhappy" Length="2:35" />
                    <samplesCommon:Song Title="I Get Along Without You Very Well" Length="3:42" />
                    <samplesCommon:Song Title="Deep In A Dream" Length="2:49" />
                </samplesCommon:Album>
                <samplesCommon:Album Title="You Do Something To Me" ReleaseYear="2008">
                    <samplesCommon:Song Title="As Time Goes By" Length="2:13" />
                    <samplesCommon:Song Title="Close To You" Length="3:06" />
                    <samplesCommon:Song Title="Come Fly With Me" Length="2:54" />
                    <samplesCommon:Song Title="Guess I'll Hang My Tears Out To Dry" Length="3:05" />
                    <samplesCommon:Song Title="I've Got My Love To Keep Me Warm" Length="1:56" />
                </samplesCommon:Album>
            </samplesCommon:Artist>
            <samplesCommon:Artist ArtistName="African Wind" Genre="Blues">
                <samplesCommon:Album Title="Mercy" ReleaseYear="2006">
                    <samplesCommon:Song Title="From African Soul" Length="3:12" />
                    <samplesCommon:Song Title="Buren Of Blues" Length="4:23" />
                    <samplesCommon:Song Title="Mississippi Fred's Dream" Length="4:48" />
                    <samplesCommon:Song Title="What You Gonna Do" Length="4:01" />
                </samplesCommon:Album>
            </samplesCommon:Artist>
            <samplesCommon:Artist ArtistName="Johnny Cash" Genre="Country">
                <samplesCommon:Album Title="At Folsom Prison" ReleaseYear="1968">
                    <samplesCommon:Song Title="Folsom Prison Blues" Length="2:42" />
                    <samplesCommon:Song Title="Busted" Length="1:25" />
                    <samplesCommon:Song Title="Dark As The Dungeon" Length="3:04" />
                    <samplesCommon:Song Title="I Still Miss Someone" Length="1:38" />
                </samplesCommon:Album>
                <samplesCommon:Album Title="The Man Comes Around" ReleaseYear="2002">
                    <samplesCommon:Song Title="The Man Comes Around" Length="4:26" />
                    <samplesCommon:Song Title="Hurt" Length="3:36" />
                    <samplesCommon:Song Title="Give My Love To Rose" Length="3:27" />
                    <samplesCommon:Song Title="Bridge Over Troubled Water" Length="3:54" />
                </samplesCommon:Album>
            </samplesCommon:Artist>
        </toolkit:ObjectCollection>
        
        <!-- Header used to seperate sections in the sample pages -->
        <Style x:Key="Header" TargetType="ContentControl">
            <Setter Property="Background" Value="#22D2D2D2" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="IsTabStop" Value="False" />
            <Setter Property="HorizontalContentAlignment" Value="Left" />
            <Setter Property="FontSize" Value="14" />
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="FontStretch" Value="UltraExpanded" />
            <Setter Property="Foreground" Value="#FF313861" />
            <Setter Property="Margin" Value="0 8 0 2" />
            <Setter Property="Padding" Value="6 2 2 2" />
            <Setter Property="VerticalContentAlignment" Value="Top" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ContentControl">
                        <Border
                      Background="{TemplateBinding Background}"
                      BorderBrush="{TemplateBinding BorderBrush}"
                      BorderThickness="{TemplateBinding BorderThickness}"
                      CornerRadius="2">
                            <ContentControl
                          Content="{TemplateBinding Content}"
                          ContentTemplate="{TemplateBinding ContentTemplate}"
                          Cursor="{TemplateBinding Cursor}"
                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                          FontFamily="{TemplateBinding FontFamily}"
                          FontSize="{TemplateBinding FontSize}"
                          FontStretch="{TemplateBinding FontStretch}"
                          Foreground="{TemplateBinding Foreground}"
                          IsTabStop="{TemplateBinding IsTabStop}"
                          Margin="{TemplateBinding Padding}"
                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>
